#ifndef render_v1_typedef_h
#define render_v1_typedef_h

#define str2Float(str) ((float)(atof(str.c_str())))
#define str2Int(str) ((int)(atoi(str.c_str())))

#define EngineInst hxe::Engine::getInstance()
#define LoggerInst EngineInst->getLogger()
#define InputInst EngineInst->getInput()
#define TimeInst EngineInst->getTime()
#define VideoInst EngineInst->getVideo()
#define SceneInst EngineInst->getScene()
#define HLuaInst EngineInst->getHLua()
#define AssetDatabaseInst EngineInst->getAssetDatabase()

//layer
#define layerNothing (0)
#define layerDefault (1 << 0)
#define layerUI (1 << 1)
#define layerEverything (~0)

//tag
#define MainCamera "MainCamera"

//errorcode
#define ExitSuccess 0
#define ExitFailure 1

#endif // render_v1_typedef_h
